package com.fjb.controller.user;


import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;

import com.fjb.common.entity.JsonTotalResult;
import com.fjb.common.entity.PageQuery;
import com.fjb.controller.base.BaseController;
import com.fjb.pojo.user.SysUser;
import com.fjb.pojo.user.query.SysUserFileQuery;
import com.fjb.pojo.user.vo.SysUserFileVo;
import com.fjb.service.user.SysUserFileService;

import java.util.List;

import javax.servlet.http.HttpServletRequest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

/**
 * <p>
 * 用户文件 前端控制器
 * </p>
 *
 * @author hemiao
 * @since 2019-12-22
 */
@Controller
@RequestMapping("/sysUserFile")
public class SysUserFileController extends BaseController{
	
	@Autowired
	private SysUserFileService sysUserFileService;
	
	@RequestMapping(value="/showPageList")
    public ModelAndView showPageList(HttpServletRequest request) {
    	ModelAndView mv = new ModelAndView();	
    	mv.setViewName("/user/sys_user_file_list");
    	return mv;
    }
	
	@RequestMapping(value = "/selectPageList")
    @ResponseBody
    public JsonTotalResult<List<SysUserFileVo>> selectPageList(HttpServletRequest request, PageQuery pageQuery){
		SysUserFileQuery userFileQuery = new SysUserFileQuery();
		return sysUserFileService.selectPageList(pageQuery,userFileQuery);
	}
}
